<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>{$pageTitle}</title>
	<meta name="author" content="九九" />
	<meta name="keywords" content="" />
	<meta name="description" content="" />	
    <link href="__PUBLIC__/default/admin/css/skin.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/default/admin/css/comm.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/default/uploadify/uploadify.css" type="text/css" rel="stylesheet" />    
    <style type="text/css">
    <!--
        body {
        	margin-left: 0px;
        	margin-top: 0px;
        	margin-right: 0px;
        	margin-bottom: 0px;
        	background-color: #EEF2FB;
        }
    -->
    </style>
</head>
<body>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="17" valign="top" background="__PUBLIC__default/admin/images/mail_leftbg.gif"><img src="__PUBLIC__default/admin/images/left-top-right.gif" width="17" height="29" /></td>
        <td valign="top" background="__PUBLIC__default/admin/images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
          <tr>
            <td height="31" align="left"><div class="titlebt"><?php if($recordInfo['config_id']) { echo '编辑';} else { echo '添加';} ?>{$modelTitle}</div></td>
            <td height="31" align="right">&nbsp;</td>
          </tr>
        </table></td>
        <td width="16" valign="top" background="__PUBLIC__default/admin/images/mail_rightbg.gif"><img src="__PUBLIC__default/admin/images/nav-right-bg.gif" width="16" height="29" /></td>
      </tr>
      <tr>
        <td valign="middle" background="__PUBLIC__default/admin/images/mail_leftbg.gif">&nbsp;</td>
        <td valign="top" bgcolor="#F7F8F9"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
           <tr>
            <td colspan="4" valign="top"> 
                <div id="hintInfoArea" class="hintInfoArea">
                     <span class="currentLoc">
                        当前模块：{$modelTitle}。
                     </span>
                     <span class="returnInfo">
                        <a href="__URL__/see/om/{$modelName}/type/{$modelTypeId}" target="_self">返回{$modelTitle}列表</a>
                     </span>
                </div>
            </td>
          </tr>
          <tr>
            <td colspan="4" valign="top">
            <form id="info_form_id" name="info_form" method="post" action="__URL__/{$nextAction}/om/{$modelName}" enctype="multipart/form-data" >
            <input type='hidden' name="gjdz_id" value="{$recordInfo.gjdz_id}" />
            <input type='hidden' name="id" value="{$recordInfo.gjdz_id}" />
            <input type="hidden" name="old_image_path" id="old_image_path_id" class="addText" value="{$recordInfo.image_path}"/>
            {__TOKEN__}
            <table width="100%"  border="0" cellpadding="0" cellspacing="0" class="line_table">
              <tr class="tableRowBg">
                <td colspan="3" >产品信息</td>
              </tr>
              <tr class="resultList">
                <td align="right" width="25%">名称：</td>
                <td align="left" width="50%"><input type="text" name="gjdz_name" id="gjdz_name_id" class="addText" value="{$recordInfo.gjdz_name}"/></td>
                <td class="left_txt"
                align="left"><em>*</em>说明：文字信息。</td>
              </tr>
              
              <tr class="resultList">
                <td align="right" width="25%">所属类型：</td>
                <td align="left" width="50%">
                <select name="{$modelTypeName}" id="{$modelTypeName}_id">
                    <option value="" <if condition="$modelTypeId eq ''">selected="true"</if>>请选择所属高级定制</option>
                    <foreach name="modelType" item="type">
                    <option value="{$type.gjdztype_id}" <if condition="$type.gjdztype_id eq $modelTypeId">selected='true'</if>>{$type.gjdztype_name}</option>
                    </foreach>
                </select>
                </td>
                <td class="left_txt" align="left"><em>*</em>说明：对应的类型。</td>
              </tr>
              <tr class="resultList">
                <td align="right">排序编号：</td>
                <td align="left"><input type="text" name="sort_loc" id="sort_loc" class="addText" value="<if condition="$recordInfo.sort_loc != ''">{$recordInfo.sort_loc}<else />1</if>" /></td>
                <td class="left_txt" align="left">说明：默认为1.</td>
              </tr>
              <tr class="resultList">
                <td align="right">是否使用所属高级定制信息：</td>
                <td align="left">
                <select name="gjdz_typeinfo" id="gjdz_typeinfo_id">
                    <option value="2" <if condition="$recordInfo.gjdz_typeinfo neq '1' "> selected</if> >是</optin>
                    <option value="1" <if condition="$recordInfo.gjdz_typeinfo eq '1' "> selected</if> >否</optin>
                </td>   
                <td class="left_txt" align="left">说明：如果选是，就不用写具体的内容，由高级定制决定。</td>
              </tr>
              <tr>
                <td colspan="3">
                    <table width="100%"  border="0" cellpadding="0"
                    cellspacing="0" class="line_table" id="gjdz_info_area_id" <if condition="$recordInfo.gjdz_typeinfo neq '1' ">style="display: none;"</if>>
                      <tr class="resultList">
                        <td align="right" width="25%">跳转链接：</td>
                        <td align="left" width="50%"><input type="text" name="jump_url" id="jump_url_id" class="addText" value="{$recordInfo.jump_url}"/></td>
                        <td class="left_txt" align="left">说明：如你淘宝站的对应链接。</td>
                      </tr>
                      <tr class="resultList">
                        <td align="right"  width="25%">材质类型：</td>
                        <td align="left"  width="50%"><input type="text" name="gjdz_res" id="gjdz_res_id" class="addText" value="{$recordInfo.gjdz_res}" /></td>
                        <td class="left_txt" align="left">说明：可选填.</td>
                      </tr>
                      <tr class="resultList">
                        <td align="right">规格：</td>
                        <td align="left"><input type="text" name="gjdz_rule" id="gjdz_rule_id" class="addText" value="{$recordInfo.gjdz_rule}" /></td>
                        <td class="left_txt" align="left">说明：可选填</td>
                      </tr>
                      <tr class="resultList">
                        <td align="right">价格：</td>
                        <td align="left"><input type="text" name="gjdz_price" id="gjdz_price_id" class="addText" value="{$recordInfo.gjdz_price}" /></td>
                        <td class="left_txt" align="left">说明：只能是数字。</td>
                      </tr>
                      <tr>
                        <td align="right">产品介绍：</td>
                        <td align="left" style="height: auto;">
                            <textarea id="gjdz_desc_id" name="gjdz_desc" class="xheditor
{tools:'Bold,Italic,Underline,FontSize,FontColor,Fontface,Strikethrough,Cut,Paste,Pastetext,|,Link,Fullscreen,About',skin:'default'}" rows="12" cols="120" style="width: 80%">{$recordInfo.gjdz_desc}</textarea>
                        </td>
                        <td class="left_txt" align="left">说明：可选填。</td>
                      </tr>
                    </table>
                 </td>
              </tr>
              <tr class="resultList">
                <td align="right">相关图片：</td>
                <td align="left">
                    <?php if ($recordInfo['image_path'] != '') { ?> <a href="__PUBLIC__/{$uploadDir}/{$recordInfo.image_path}"><img src="__PUBLIC__/{$uploadDir}/{$recordInfo.image_path_small}" class="lImgTypeOne"/></a>
                    <input type="checkbox" name="del_image" value="1"/>是否删除图片
                    <?php } ?>
                    <input type="file" name="image_path" id="image_path_id" class="addText" value=""/>
                </td>   
                <td class="left_txt" align="left">说明：大小391px X 377px.</td>
              </tr>
               <tr class="resultList">
                <td align="right">&nbsp;</td>
                <td align="left">
                    <input type="submit" id="btn_submit_id" value="提交"/>
                    &nbsp;&nbsp;&nbsp;
                    <input type="reset"  id="btn_reset_id" value="重填"/>
                </td>
                <td >&nbsp;</td>
              </tr>
            </table>
            </form>
            </td>
          </tr>
          <tr>
            <td width="2%">&nbsp;</td>
            <td width="51%" class="left_txt">&nbsp;</td>
            <td width="7%">&nbsp;</td>
            <td width="40%">&nbsp;</td>
          </tr>
        </table></td>
        <td background="__PUBLIC__default/admin/images/mail_rightbg.gif">&nbsp;</td>
      </tr>
      <tr>
        <td valign="bottom" background="__PUBLIC__default/admin/images/mail_leftbg.gif"><img src="__PUBLIC__default/admin/images/buttom_left2.gif" width="17" height="17" /></td>
        <td background="__PUBLIC__default/admin/images/buttom_bgs.gif"><img src="__PUBLIC__default/admin/images/buttom_bgs.gif" width="17" height="17"></td>
        <td valign="bottom" background="__PUBLIC__default/admin/images/mail_rightbg.gif"><img src="__PUBLIC__default/admin/images/buttom_right2.gif" width="16" height="17" /></td>
      </tr>
    </table>
    <script language="javascript">
        var publicDir       = '__PUBLIC__/default';
        var url             = '__URL__';
    </script>
    <script language="javascript" src="__PUBLIC__default/comm/js/jquery.js"></script> 
    <script language="javascript" src="__PUBLIC__default/xheditor/xheditor-1.1.6-zh-cn.min.js"></script>
    <script language="javascript" src="__PUBLIC__default/comm/js/XDialog.class.js"></script> 
    <script language="javascript" src="__PUBLIC__default/admin/js/Gjdz.page.js"></script>
</body>
</html>
